<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/7/27
 * Time: 16:03
 */

namespace Home\Component;


use Home\Model\Weixin\WeixinModel;

class WeixinComponent
{
    private $model;

    public function __construct()
    {
        $this->model = new WeixinModel();
    }

    public function getWeixinInfo($weixin_id)
    {
        return $this->model->getWeixinInfo($weixin_id);
    }

    public function getWeixin($openid)
    {
        return $this->model->getWeixin($openid);
    }

    public function getSubscibe($openid)
    {
        return $this->model->getSubscibe($openid);
    }
}